<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{pcPurchaseReqBean.id}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseReqBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Pc Purchase Req"/>

	<ui:define name="header">
		Pc Purchase Req
	</ui:define>

	<ui:define name="subheader">
		View existing Pc Purchase Req
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrNo" value="Pr No:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrNo" value="#{pcPurchaseReqBean.pcPurchaseReq.prNo}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqStatus" value="Pc Purchase Req Status:"/>
			<h:link id="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqStatus" outcome="/pcPurchaseReqStatus/view" value="#{pcPurchaseReqBean.pcPurchaseReq.pcPurchaseReqStatus}">
				<f:param name="id" value="#{pcPurchaseReqBean.pcPurchaseReq.pcPurchaseReqStatus.prStatusNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqSysTermOfPayment" value="Sys Term Of Payment:"/>
			<h:link id="pcPurchaseReqBeanPcPurchaseReqSysTermOfPayment" outcome="/sysTermOfPayment/view" value="#{pcPurchaseReqBean.pcPurchaseReq.sysTermOfPayment}">
				<f:param name="id" value="#{pcPurchaseReqBean.pcPurchaseReq.sysTermOfPayment.termOfPaymentNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqMmSupplierType" value="Mm Supplier Type:"/>
			<h:link id="pcPurchaseReqBeanPcPurchaseReqMmSupplierType" outcome="/mmSupplierType/view" value="#{pcPurchaseReqBean.pcPurchaseReq.mmSupplierType}">
				<f:param name="id" value="#{pcPurchaseReqBean.pcPurchaseReq.mmSupplierType.supplierTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqMmSupplier" value="Mm Supplier:"/>
			<h:link id="pcPurchaseReqBeanPcPurchaseReqMmSupplier" outcome="/mmSupplier/view" value="#{pcPurchaseReqBean.pcPurchaseReq.mmSupplier}">
				<f:param name="id" value="#{pcPurchaseReqBean.pcPurchaseReq.mmSupplier.supplierNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqHrEmp" value="Hr Emp:"/>
			<h:link id="pcPurchaseReqBeanPcPurchaseReqHrEmp" outcome="/hrEmp/view" value="#{pcPurchaseReqBean.pcPurchaseReq.hrEmp}">
				<f:param name="id" value="#{pcPurchaseReqBean.pcPurchaseReq.hrEmp.empNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqSysTitleName" value="Sys Title Name:"/>
			<h:link id="pcPurchaseReqBeanPcPurchaseReqSysTitleName" outcome="/sysTitleName/view" value="#{pcPurchaseReqBean.pcPurchaseReq.sysTitleName}">
				<f:param name="id" value="#{pcPurchaseReqBean.pcPurchaseReq.sysTitleName.titleNameNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrCode" value="Pr Code:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrCode" value="#{pcPurchaseReqBean.pcPurchaseReq.prCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDescr" value="Pr Descr:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrDescr" value="#{pcPurchaseReqBean.pcPurchaseReq.prDescr}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDate" value="Pr Date:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrDate" value="#{pcPurchaseReqBean.pcPurchaseReq.prDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierCode" value="Pr Supplier Code:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierCode" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierFirstName" value="Pr Supplier First Name:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierFirstName" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierFirstName}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierMidName" value="Pr Supplier Mid Name:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierMidName" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierMidName}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierLastName" value="Pr Supplier Last Name:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierLastName" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierLastName}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrSupplierIdCardNo" value="Pr Supplier Id Card No:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrSupplierIdCardNo" value="#{pcPurchaseReqBean.pcPurchaseReq.prSupplierIdCardNo}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrTermOfPaymentCode" value="Pr Term Of Payment Code:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrTermOfPaymentCode" value="#{pcPurchaseReqBean.pcPurchaseReq.prTermOfPaymentCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDiscountPerc" value="Pr Discount Perc:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrDiscountPerc" value="#{pcPurchaseReqBean.pcPurchaseReq.prDiscountPerc}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDiscountVal" value="Pr Discount Val:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrDiscountVal" value="#{pcPurchaseReqBean.pcPurchaseReq.prDiscountVal}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrDiscountTotal" value="Pr Discount Total:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrDiscountTotal" value="#{pcPurchaseReqBean.pcPurchaseReq.prDiscountTotal}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrStatusIncVat" value="Pr Status Inc Vat:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrStatusIncVat" value="#{pcPurchaseReqBean.pcPurchaseReq.prStatusIncVat}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrVatPercVal" value="Pr Vat Perc Val:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrVatPercVal" value="#{pcPurchaseReqBean.pcPurchaseReq.prVatPercVal}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrTotalPriceExcVat" value="Pr Total Price Exc Vat:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrTotalPriceExcVat" value="#{pcPurchaseReqBean.pcPurchaseReq.prTotalPriceExcVat}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrTotalVat" value="Pr Total Vat:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrTotalVat" value="#{pcPurchaseReqBean.pcPurchaseReq.prTotalVat}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrTotalPrice" value="Pr Total Price:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrTotalPrice" value="#{pcPurchaseReqBean.pcPurchaseReq.prTotalPrice}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrCreatedDtm" value="Pr Created Dtm:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrCreatedDtm" value="#{pcPurchaseReqBean.pcPurchaseReq.prCreatedDtm}">
				<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPrMemo" value="Pr Memo:"/>
			<h:outputText id="pcPurchaseReqBeanPcPurchaseReqPrMemo" value="#{pcPurchaseReqBean.pcPurchaseReq.prMemo}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPcPurchaseOrders" value="Pc Purchase Orders:"/>
			<h:dataTable id="pcPurchaseReqBeanPcPurchaseReqPcPurchaseOrders" styleClass="data-table" value="#{forgeview:asList(pcPurchaseReqBean.pcPurchaseReq.pcPurchaseOrders)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoNo" value="#{_item.poNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoCode" value="#{_item.poCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDescr" value="#{_item.poDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDate" value="#{_item.poDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDiscountPerc" value="#{_item.poDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqItems" value="Pc Purchase Req Items:"/>
			<h:dataTable id="pcPurchaseReqBeanPcPurchaseReqPcPurchaseReqItems" styleClass="data-table" value="#{forgeview:asList(pcPurchaseReqBean.pcPurchaseReq.pcPurchaseReqItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Qty"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrQty" value="#{_item.prQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Ppu"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrPpu" value="#{_item.prPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrStatusIncVat" value="#{_item.prStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrVatPercVal" value="#{_item.prVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Vat Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrVatVal" value="#{_item.prVatVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>